package spring.utils;

import java.lang.reflect.Field;

public class ClassUtil {

    public static void setField(Field declaredField, Object instance, Object value) {
        declaredField.setAccessible(true);
        try {
            declaredField.set(instance,value);
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        }
    }

}
